import {Permit} from "@/apis/model/system/PermitModel";

export interface Role {
  id: number
  roleName: string
  roleIntro: string
  delFlag: number
  createUser: number
  createTime: Date
  updateTime: Date
  remark: string
}

/**
 * 角色权限树
 */
export interface RolePermitTree {
  roleId?: number,
  allotPermitVisible: Boolean,   // dialog 是否显示
  tableData: Array<Permit>,
  checkedKeys: Array<number>
}

export interface RolePermit {
  roleId: number,
  permitIds: Array<number>
}